package cn.ly.util;

import java.util.Random;

public class ArithmeticTool {
	
	//随机0到100之间的整数，不包括100
	public static int getIntRandom0to100(){
		Random rand = new Random();
		int ranTemp = 0;
		ranTemp = rand.nextInt();
		if(ranTemp < 0){
			ranTemp *= -1;
		}
		//return ranTemp & 99;
		return ranTemp % 100;
	}
	
	//随机0到100之间的整数，不包括 -100 ~ 100
	public static int getIntRandomto100(){
		Random rand = new Random();
		int ranTemp = 0;
		ranTemp = rand.nextInt();
		//return ranTemp & 99;
		return ranTemp % 100;
	}
	
}
